package cn.cmeizu.spring6.iocxml.dimap;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author cmeizu
 * @date 2023/2/9 00:33
 */
public class StudentTest {
  public static void main(String[] args) {
    //ApplicationContext context = new ClassPathXmlApplicationContext("bean-dimap.xml");
    //Student student = context.getBean("student", Student.class);
    //student.run();

    ApplicationContext context = new ClassPathXmlApplicationContext("bean-diref.xml");
    Student student = context.getBean("student-p", Student.class);
    student.run();
  }
}
